# -*- codeing = utf-8 -*-
# @Time : 2021/2/23 11:22
# @Atuthor: 朱朱
# @File: 062集合的练习.py
# @Software: PyCharm
nums = [5, 8, 7, 6, 4, 1, 3, 5, 1, 8, 4]

x = set(nums) # 转为集合去重,并排序
print(x)

y = list(x) # 转为列表,并排序
print(y)

y.sort(reverse=True) # 倒序
print(y)